<?php declare(strict_types=1);

use PHPUnit\Framework\TestCase;

final class setUpTest extends TestCase
{
    private $stack;

    public function setUp(): void
    {
        $this->stack = [];
    }

    public function testPush(): void
    {
        array_push($this->stack, 'foo');
        $this->assertEmpty(!$this->stack);
    }

    public function testPop(): void
    {
        array_push($this->stack, 'foo');
        $temp = array_pop($this->stack);
        $this->assertSame('foo', $temp);
    }
}